package mk.jug.academy.testing.factory;

import java.util.Date;
import java.util.UUID;

import mk.jug.academy.model.Content;


/**
 * Factory for creating instances for test purposes.
 *
 * @author Ice.Penov
 */
public final class ContentTestFactory {
	
	/** No instantiation. Static usage only. */
	private ContentTestFactory() {;}
	
	/** Creates a random {@link Content} instance, for testing purposes */	
	public static Content createContent() {
		Content content = new Content();
		content.setTitle("title" + UUID.randomUUID());
		content.setBody("body" + UUID.randomUUID());
		content.setPublishDate(new Date());
		return content;
	}

}
